package ytt.small.fore.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ytt.small.fore.mapper.UserMapper;
import ytt.small.fore.model.po.User;
import ytt.small.fore.service.UserService;

/**
 * @Author: small_woods
 * @Date: 2020/6/16 11:51
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public void insert(User user) {
        userMapper.insert(user);
    }

    @Override
    public String selectByUserName(String username) {
        return userMapper.selectByUserName(username);
    }

    @Override
    public User selectAll(String username) {
        return userMapper.selectAll(username);
    }
}
